#include <vector>
#include <iostream>

int main()
{
    std::vector<int> v = {0,1,2,3,4};
    std::vector<int>&& refv = std::move(v);
    std::vector<int> v1 = std::move(v); // 移动构造

    auto dump = [](auto&& vec){
        std::cout << "---" << std::endl;
        for(auto& i: vec)
        {
            std::cout << i << std::endl;
        }
        std::cout << "===" << std::endl;
    };

   dump(v); // 空
    // dump(v1);
    std::cout << v1.empty() << std::endl;
}